/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kasgroup2;

import javax.swing.JTabbedPane;

/**
 *
 * @author beha
 */
public class UIKASGroup2 extends javax.swing.JFrame {

    /**
     * Creates new form UIKASGroup2
     */
    public UIKASGroup2() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        tabMain = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setSize(new java.awt.Dimension(1120, 780));

        tabMain.setMaximumSize(new java.awt.Dimension(1250, 780));
        tabMain.setMinimumSize(new java.awt.Dimension(1250, 780));
        tabMain.setPreferredSize(new java.awt.Dimension(1250, 780));
        tabMain.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                tabMainStateChanged(evt);
            }
        });

        jPanel1.setLayout(new java.awt.BorderLayout());
        tabMain.addTab("Registration", jPanel1);
        jPanel1.add(new UIRegisterPanel(), java.awt.BorderLayout.CENTER);

        jPanel2.setLayout(new java.awt.BorderLayout());

        //jPanel4.add(new UIHotelOverviewForConferenceWithParticipantAndCompanion(), java.awt.BorderLayout.CENTER);
        //jPanel4.add(new UIActivityDetailWithCompanion(), java.awt.BorderLayout.CENTER);
        jPanel4.add(new UIConferenceOverview(), java.awt.BorderLayout.CENTER);
        jTabbedPane1.addTab("Conferences", jPanel4);

        jPanel5.add(new UIHotelOverview(), java.awt.BorderLayout.CENTER);
        jTabbedPane1.addTab("Hotels", jPanel5);

        jPanel6.add(new UIHotelOverviewForConferenceWithParticipantAndCompanion(), java.awt.BorderLayout.CENTER);
        jTabbedPane1.addTab("Hotels & Guests", jPanel6);

        jPanel7.add(new UIOverviewForActivities(), java.awt.BorderLayout.CENTER);
        jTabbedPane1.addTab("Activities", jPanel7);

        jPanel9.add(new UISpeakersOverview(), java.awt.BorderLayout.CENTER);
        jTabbedPane1.addTab("Speakers", jPanel9);

        jPanel2.add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        tabMain.addTab("Overview", jPanel2);

        getContentPane().add(tabMain, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tabMainStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_tabMainStateChanged
        JTabbedPane pane = (JTabbedPane) evt.getSource();
        // Get current tab
        int selectedTabIndex = pane.getSelectedIndex();
        if (selectedTabIndex == 1) {
        }
    }//GEN-LAST:event_tabMainStateChanged

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(UIKASGroup2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(UIKASGroup2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(UIKASGroup2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(UIKASGroup2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new UIKASGroup2().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane tabMain;
    // End of variables declaration//GEN-END:variables
}
